﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class CustomerModel:ModelBase
    {
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection uploadCustomer = new NameValueCollection();
            uploadCustomer.Add("id", this.Id.ToString());
            uploadCustomer.Add("name", this.Name);
            uploadCustomer.Add("address", this.Address);
            uploadCustomer.Add("gender", this.Gender);
            uploadCustomer.Add("phone", this.Phone);
            uploadCustomer.Add("email", this.Email);
            uploadCustomer.Add("comments", this.Comments);
            uploadCustomer.Add("shop_id", this.Shop_id.ToString());
            return uploadCustomer;
        }
        public CustomerModel()
        {
        }
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string address;

        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        private string gender;

        public string Gender
        {
            get { return gender; }
            set { gender = value; }
        }
        private string phone;

        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }
        private string email;

        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        private string comments;

        public string Comments
        {
            get { return comments; }
            set { comments = value; }
        }
        private int shop_id;

        public int Shop_id
        {
            get { return shop_id; }
            set { shop_id = value; }
        }
    }
}
